import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Home from '@/components/Home'
import Fenlei from '@/components/Fenlei'
import Zhounian from '@/components/Zhounian'
import Car from '@/components/Car'
import Mine from '@/components/Mine'
import Single from '@/components/Single'
import Club from '@/components/Club'
import Jingpin from '@/components/Jingpin'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
    	path: '/fenlei',
    	name: 'Fenlei',
    	component: Fenlei
    },
    {
    	path: '/zhounian',
    	name: 'Zhounian',
    	component: Zhounian
    },
    {
    	path: '/car',
    	name: 'Car',
    	component : Car
    },
    {
    	path: '/mine',
    	name: 'Mine',
    	component : Mine
    },
    {
    	path: '/single',
    	name: 'Single',
    	component: Single
    },
	{
        path: '/club',
        name: 'Club',
        component: Club
    },
    {
        path: '/jingpin',
        name: 'Jingpin',
        component: Jingpin
    },
    {
      path: '/',
      redirect: 'home'//默认路由的实现 以及 active 样式
    }
  ]
})
